<template>
  <i-frame :src="url" />
</template>
<script>
  import iFrame from "@/components/iFrame/index";
  import { getToken } from '@/utils/auth'
  export default {
    name: "Admin",
    components: { iFrame },
    data() {
      return {
        url: ""
      };
    },
    created() {
      this.toPage();
    },
    methods:{
      toPage(){
        this.url = process.env.VUE_APP_JM_REPORT_ADMIN+this.$route.query.pageUrl+"?token=Bearer "+ getToken()
      }
    }
  };
</script>
